<!DOCTYPE html>
[#escape x as (x)!?html]
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <title>投票 - ${site.seoTitle} - Powered by JPROCMS</title>
    <meta name="keywords" content="${site.seoKey}" />
    <meta name="description" content="${site.seoDesc}" />
    [#include '../includes/common_res.html'/]
  </head>
  <body>
    [#assign shadowNav=true/] [#include '../includes/header.html'/]
    <div class="bg-gray-200">
      <div class="container">
        <nav class="row" aria-label="breadcrumb">
          <ol class="col list-inline my-2">
            <li class="list-inline-item"><a href="${site.url}">首页</a></li>
            <li class="list-inline-item">/</li>
            <li class="list-inline-item"><a href="${base}/vote">投票</a></li>
          </ol>
        </nav>
      </div>
    </div>
    <div class="container mt-4">
      [@ZVotePage;pageResult]
      <ul class="list-unstyled">
        [#list pageResult.list as vote]
        <li class="mt-3 media border-bottom position-relative pb-2">
          <div class="media-body">
            <p class="mt-0 mb-1">
              <a
                href="${base}/vote/${vote.id?c}"
                class="cm-link text-decoration-none"
                >${vote.title}</a
              >
            </p>
            <div class="small text-muted mt-2 clearfix">
              <div class="float-left">
                [#if vote.status == 0]
                <span class="badge badge-success">进行中</span>
                [#elseif vote.status == 1]
                <span class="badge badge-secondary">未启用</span>
                [#elseif vote.status == 2]
                <span class="badge badge-warning">未开始</span>
                [#elseif vote.status == 3]
                <span class="badge badge-info">已结束</span>
                [#else]
                <span class="badge badge-danger">未知状态</span>
                [/#if]
                <i
                  class="ml-2 fas fa-vote-yea text-primary"
                  title="参与人次"
                ></i>
                <span>${vote.voteNum}</span>
              </div>
              <div class="float-right">
                <i class="ml-2 far fa-clock"></i>
                ${ZFormat(vote.createTime,'yyyy-MM-dd')}
              </div>
            </div>
          </div>
        </li>
        [/#list]
      </ul>

      [#include '../includes/inc_page.html'/] [/@ZVotePage]
    </div>

    [#include '../includes/footer.html'/] [#include '../includes/inc_msg.html'/]
  </body>
</html>
[/#escape]
